﻿<Window x:Class="P2.Cuberry.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cal="http://www.codeplex.com/prism"
    xmlns:inf="clr-namespace:P2.Cuberry.Framework.Infrastructure;assembly=P2.Cuberry.Framework.Infrastructure"
    xmlns:sa="clr-namespace:P2.Cuberry"

   Title="Peacequare - Cuberry" Width="800" Height="600" Icon="/P2.Cuberry;component/Images/CuberryIcon32.ico"
   Background="{DynamicResource P2BackgroundBrush}" 
        Closed="Window_Closed"
       >

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/ShellStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>


    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="240"/>           
            <ColumnDefinition Width="629*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="54" />
            <RowDefinition Height="0" />
            <RowDefinition Height="*" />
            <RowDefinition Height="24" />
        </Grid.RowDefinitions>
        
        
         <!-- Row 0 Start -->
        <Image Margin="15,0,0,0" Name="Logo" Stretch="None" Source="/P2.Cuberry;component/Images/CuberryLogo54.png" HorizontalAlignment="Left" VerticalAlignment="Top" />

        <Label Style="{StaticResource P2ShellHeaderUserLabelStyle}" HorizontalAlignment="Right" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Padding="5" Margin="0,2,0,0" Width="Auto" Name="lblUserName" Content="User Name" />
        <Label Style="{StaticResource P2ShellHeaderUserLabelStyle}" HorizontalAlignment="Right" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Padding="5" Margin="0,17,0,0" Width="Auto" Name="lblUserGroup" Content="User Group"/>
        <Button HorizontalAlignment="Right" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Padding="5" Margin="0,5,150,15" Width="Auto" Name="btnRegister" Content="Register" Visibility="Hidden" Click="btnRegister_Click"/>

        <!--<Separator Margin="0,0,0,0" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Top" Height="10"/>-->
        <!-- Row 0 End -->


        <!-- Row 2 Start -->
        <Border Style="{StaticResource P2ShellBorderStyle}" Margin="5,5,3,5" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Stretch">            
            <sa:MainMenuControl x:Name="MainMenuInst"  Grid.Column="0" Grid.Row="2" Height="Auto" MinWidth="210" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ></sa:MainMenuControl>
        </Border>


        <GridSplitter Grid.Row="2" Grid.Column="1" Style="{StaticResource P2ShellGridSplitterStyle}"  />

        <Border Grid.Row="2" Grid.Column="2" Style="{StaticResource P2ShellBorderStyle}" Margin="5,5,5,5" >
            <Grid Margin="0" VerticalAlignment="Stretch">
                <ItemsControl cal:RegionManager.RegionName="{x:Static inf:RegionNames.MainRegion}" HorizontalAlignment="Stretch" VerticalContentAlignment="Stretch"  VerticalAlignment="Stretch" >
                    <ItemsControl.Template>
                        <ControlTemplate TargetType="ItemsControl">
                                <ItemsPresenter/>

                        </ControlTemplate>
                    </ItemsControl.Template>
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <WrapPanel />
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                </ItemsControl>
            </Grid>
        </Border>
        <!-- Row 2 End -->



        <!-- Row 3 Start -->
        <ComboBox Grid.Row="3" Grid.Column="2" x:Name="languages" Margin="2" Height="20" Width="40" HorizontalAlignment="Right" />
        
        <!-- Row 3 End -->

    </Grid>
</Window>

    
    
    